<?php
/*
* File：后台首页
* Author：易如意
* QQ：51154393
* Url：www.eruyi.cn
*/
require_once 'globals.php';
include_once 'header.php';
$domain = $_SERVER['SERVER_NAME'];
$serverapp = $_SERVER['SERVER_SOFTWARE'];
$mysql_ver = $db->getMysqlVersion();
$php_ver = PHP_VERSION;
$uploadfile_maxsize = ini_get('upload_max_filesize');
if (function_exists("imagecreate")) {
	if (function_exists('gd_info')) {
		$ver_info = gd_info();
		$gd_ver = $ver_info['GD Version'];
	} else{
		$gd_ver = '支持';
	}
} else{
	$gd_ver = '不支持';
}
?>
<h3>站点信息</h3>
<li>当前域名：<?php echo $domain; ?></li>
<li>PHP版本：<?php echo $php_ver; ?></li>
<li>MySQL版本：<?php echo $mysql_ver; ?></li>
<li>服务器环境：<?php echo $serverapp; ?></li>
<li>GD图形处理库：<?php echo $gd_ver; ?></li>
<li>服务器空间允许上传最大文件：<?php echo $uploadfile_maxsize; ?></li>
<script> 
var div = document.getElementById('index'); 
div.setAttribute("class", "show"); 
</script> 
<?php 
include_once 'footer.php';
?>